<div class="login_top">
	<?php if(!$this->Session->read('Auth.User.id')):?>
		<?php echo $this->Form->create('User', array('url' => array('plugin' => null, 'controller' => 'users' , 'action' => 'login')));?>
			<?php echo $this->Form->input('email', array('label' => 'Email',  'class'=>'text'));?>
			<?php echo $this->Form->input('password', array('type' => 'password', 'label' => 'Mật khẩu', 'class'=>'text'));?>
			<?php echo $this->Form->button('Đăng nhập', array('type' => 'submit'));?>
			<?php echo $this->Html->link('Quên mật khẩu?', array('plugin' => null, 'controller' => 'users', 'action' => 'forgetpassword' ));?>
			<?php echo $this->Html->link('Đăng ký', array('plugin' => null,'controller' => 'users', 'action' => 'login'))?>
			<?php echo $this->Form->end();?>
	<?php else : ?>
		<?php echo $this->Session->read('Auth.User.email');?>
		<?php echo $this->Html->link('Thoát', array('plugin' => null,'controller' => 'users', 'action' => 'logout'))?>
		<br/>
		<?php echo $this->Html->link('Đổi mật khẩu', array('plugin' => null,'controller' => 'users', 'action' => 'changepassword'))?>
	<?php endif;?>
</div>